package com.item.service.item;

import com.item.mapper.usermapper;
import com.item.pojo.User;
import com.item.service.userservice;
import com.item.utils.Md5Util;
import com.item.utils.PasswordEncoderUtil;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@AllArgsConstructor
public class userserviceitem implements userservice {

    private usermapper usermapper;


    @Override
    public User getusername(String username) {
        return usermapper.getusername(username);
    }

    @Override
    public void register(String username, String password, int age, String address, String sex, String phone, String idCard, String email)
    {


        usermapper.register(username,password,age,address,sex,phone,idCard,email);
    }
}
